package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_projectProcess implements JET2Template {
    private static final String _jetns_ws = "org.eclipse.jet.workspaceTags"; //$NON-NLS-1$

    public _jet_projectProcess() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_ws_file_4_1 = new TagInfo("ws:file", //$NON-NLS-1$
            4, 1,
            new String[] {
                "template", //$NON-NLS-1$
                "encoding", //$NON-NLS-1$
                "path", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/configure/project.jet", //$NON-NLS-1$
                "utf-8", //$NON-NLS-1$
                "{$projectName}/.project", //$NON-NLS-1$
            } );
    private static final TagInfo _td_ws_file_8_1 = new TagInfo("ws:file", //$NON-NLS-1$
            8, 1,
            new String[] {
                "template", //$NON-NLS-1$
                "encoding", //$NON-NLS-1$
                "path", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/configure/classpath.jet", //$NON-NLS-1$
                "utf-8", //$NON-NLS-1$
                "{$projectName}/.classpath", //$NON-NLS-1$
            } );
    private static final TagInfo _td_ws_file_12_1 = new TagInfo("ws:file", //$NON-NLS-1$
            12, 1,
            new String[] {
                "template", //$NON-NLS-1$
                "encoding", //$NON-NLS-1$
                "path", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/configure/pom.jet", //$NON-NLS-1$
                "utf-8", //$NON-NLS-1$
                "{$projectName}/pom.xml", //$NON-NLS-1$
            } );
    private static final TagInfo _td_ws_file_15_1 = new TagInfo("ws:file", //$NON-NLS-1$
            15, 1,
            new String[] {
                "template", //$NON-NLS-1$
                "encoding", //$NON-NLS-1$
                "path", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/configure/springBeans.jet", //$NON-NLS-1$
                "utf-8", //$NON-NLS-1$
                "{$projectName}/.springBeans", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write(NL);         
        // 生成.project文件 
        RuntimeTagElement _jettag_ws_file_4_1 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_4_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_ws_file_4_1.setRuntimeParent(null);
        _jettag_ws_file_4_1.setTagInfo(_td_ws_file_4_1);
        _jettag_ws_file_4_1.doStart(context, out);
        _jettag_ws_file_4_1.doEnd();
        out.write(NL);         
        out.write(NL);         
        // 生成.classpath文件 
        //<ws:copyFile src="templates/content/{$framework}/configure/.classpath" srcEncoding="utf-8" targetEncoding="utf-8" target="{$projectName}/.classpath"/>
        RuntimeTagElement _jettag_ws_file_8_1 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_8_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_ws_file_8_1.setRuntimeParent(null);
        _jettag_ws_file_8_1.setTagInfo(_td_ws_file_8_1);
        _jettag_ws_file_8_1.doStart(context, out);
        _jettag_ws_file_8_1.doEnd();
        out.write(NL);         
        out.write(NL);         
        out.write(NL);         
        // 生成pom.xml文件 
        RuntimeTagElement _jettag_ws_file_12_1 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_12_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_ws_file_12_1.setRuntimeParent(null);
        _jettag_ws_file_12_1.setTagInfo(_td_ws_file_12_1);
        _jettag_ws_file_12_1.doStart(context, out);
        _jettag_ws_file_12_1.doEnd();
        out.write(NL);         
        out.write(NL);         
        // 生成.springBeans文件 
        RuntimeTagElement _jettag_ws_file_15_1 = context.getTagFactory().createRuntimeTag(_jetns_ws, "file", "ws:file", _td_ws_file_15_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_ws_file_15_1.setRuntimeParent(null);
        _jettag_ws_file_15_1.setTagInfo(_td_ws_file_15_1);
        _jettag_ws_file_15_1.doStart(context, out);
        _jettag_ws_file_15_1.doEnd();
        out.write(NL);         
        out.write(NL);         
        // 这个可以暂时不用管，生成.merge.xml文件 ，不知道有什么作用
        // 
        //	<ws:file template="templates/content/{$framework}/configure/merge.jet" encoding="utf-8" path="{$projectName}/.merge.xml"/>
    }
}
